package com.saycode.back.article.service;


import com.saycode.common.beans.Article;
import com.saycode.common.beans.ArticleContent;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by zhangyanhui on 2017/6/14.
 */
public interface ArticleService {
    Page<Article> findByUserId(Long userId, int pageNum);
    void save(Article article,String content);
    Article findById(Long id);
    void save(Article article);
    ArticleContent findContentById(Long id);
    void delete(Long id);
}
